package com.hl.sfzy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 文章表
 * @TableName article
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Article implements Serializable {
    /**
     * 文章编号
     */
    private Integer articleId;

    /**
     * 文章名
     */
    private String articleName;

    /**
     * 文章简介
     */
    private String articleIntroduce;

    /**
     * 咨询师id【外键】
     */
    private Integer consultantId;

    /**
     * 列表图【url网址】
     */
    private String tabularchart;

    /**
     * 详情内容
     */
    private String articleDetails;

    /**
     * 阅读量
     */
    private Integer articleReadNum;

    /**
     * 收藏量
     */
    private Integer articleCollects;

    /**
     * 所属分类【外键】
     */
    private Integer articleTypeId;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date articleCreateTime;

    private static final long serialVersionUID = 1L;
    //咨询师信息
    private Consultants consultants;

    /**
     * 文章编号
     */
    public Integer getArticleId() {
        return articleId;
    }

    /**
     * 文章编号
     */
    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    /**
     * 文章名
     */
    public String getArticleName() {
        return articleName;
    }

    /**
     * 文章名
     */
    public void setArticleName(String articleName) {
        this.articleName = articleName;
    }

    /**
     * 文章简介
     */
    public String getArticleIntroduce() {
        return articleIntroduce;
    }

    /**
     * 文章简介
     */
    public void setArticleIntroduce(String articleIntroduce) {
        this.articleIntroduce = articleIntroduce;
    }

    /**
     * 咨询师id【外键】
     */
    public Integer getConsultantId() {
        return consultantId;
    }

    /**
     * 咨询师id【外键】
     */
    public void setConsultantId(Integer consultantId) {
        this.consultantId = consultantId;
    }

    /**
     * 列表图【url网址】
     */
    public String getTabularchart() {
        return tabularchart;
    }

    /**
     * 列表图【url网址】
     */
    public void setTabularchart(String tabularchart) {
        this.tabularchart = tabularchart;
    }

    /**
     * 详情内容
     */
    public String getArticleDetails() {
        return articleDetails;
    }

    /**
     * 详情内容
     */
    public void setArticleDetails(String articleDetails) {
        this.articleDetails = articleDetails;
    }

    /**
     * 阅读量
     */
    public Integer getArticleReadNum() {
        return articleReadNum;
    }

    /**
     * 阅读量
     */
    public void setArticleReadNum(Integer articleReadNum) {
        this.articleReadNum = articleReadNum;
    }

    /**
     * 收藏量
     */
    public Integer getArticleCollects() {
        return articleCollects;
    }

    /**
     * 收藏量
     */
    public void setArticleCollects(Integer articleCollects) {
        this.articleCollects = articleCollects;
    }

    /**
     * 所属分类【外键】
     */
    public Integer getArticleTypeId() {
        return articleTypeId;
    }

    /**
     * 所属分类【外键】
     */
    public void setArticleTypeId(Integer articleTypeId) {
        this.articleTypeId = articleTypeId;
    }

    /**
     * 创建时间
     */
    public Date getArticleCreateTime() {
        return articleCreateTime;
    }

    /**
     * 创建时间
     */
    public void setArticleCreateTime(Date articleCreateTime) {
        this.articleCreateTime = articleCreateTime;
    }
}